package com.atguigu.product.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@ConfigurationProperties(prefix = "product")
@Component
public class OrderProperties {
    private String name;
    private String unit;
    private String price;
    private String mysqlUrl;

    @Override
    public String toString() {
        return "OrderProperties{" +
                "name='" + name + '\'' +
                ", unit='" + unit + '\'' +
                ", price='" + price + '\'' +
                ", mysqlUrl='" + mysqlUrl + '\'' +
                '}';
    }
}
